using System;
using System.ComponentModel;
using System.Web.UI.Design;

namespace PickGold.Charting.Design
{
	internal class ImageValueEditor : ImageUrlEditor
	{
		public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
		{
			if (Chart.ControlCurrentContext != null)
				return base.EditValue(Chart.ControlCurrentContext, provider, value);

			return base.EditValue(context, provider, value);
		}
	}
}

